package com.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "HISTORY_LOG", schema = "dbo")
public class HistoryLog implements Serializable {
	private static final long serialVersionUID = 1L;

	private long id;

	private int version;
	private Date timestamp;
	private String event;
	private String ipAddress;
	private String macAddress;
	private String hostName;
	private String memberOrServer;
	private Date startTime;
	private Date endTime;
	private String billingClass;
	private String bindingState;
	private String nextBindingState;
	private String UID;
	private Date TSTP;
	private Date TSFP;
	private Date CLTT;
	private String option;
	private String comment;
	private String userName;
	private String networkView;
	private String protocol;
	private String DUID;
	private String IAID;
	private String prefixBits;
	private String preferredLifetime;

	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "Version", length = 8)
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "Time_Stamp", length = 23)
	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	@Column(name = "Event", length = 30)
	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	@Column(name = "IpAddress", length = 50)
	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	@Column(name = "MacAddress", length = 50)
	public String getMacAddress() {
		return macAddress;
	}

	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}

	@Column(name = "HostName", length = 100)
	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	@Column(name = "MemberOrServer", length = 50)
	public String getMemberOrServer() {
		return memberOrServer;
	}

	public void setMemberOrServer(String memberOrServer) {
		this.memberOrServer = memberOrServer;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "StartTime", length = 23)
	public java.util.Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EndTime", length = 23)
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "BillingClass", length = 50)
	public String getBillingClass() {
		return billingClass;
	}

	public void setBillingClass(String billingClass) {
		this.billingClass = billingClass;
	}

	
	@Column(name = "BindingState", length = 50)
	public String getBindingState() {
		return bindingState;
	}

	public void setBindingState(String bindingState) {
		this.bindingState = bindingState;
	}

	@Column(name = "NextBindingState", length = 50)
	public String getNextBindingState() {
		return nextBindingState;
	}

	public void setNextBindingState(String nextBindingState) {
		this.nextBindingState = nextBindingState;
	}

	@Column(name = "UID", length = 50)
	public String getUID() {
		return UID;
	}

	public void setUID(String uid) {
		UID = uid;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "TSTP", length = 23)
	public Date getTSTP() {
		return TSTP;
	}

	public void setTSTP(Date tstp) {
		TSTP = tstp;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "TSFP", length = 23)
	public Date getTSFP() {
		return TSFP;
	}

	public void setTSFP(Date tsfp) {
		TSFP = tsfp;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CLTT", length = 23)
	public Date getCLTT() {
		return CLTT;
	}

	public void setCLTT(Date cltt) {
		CLTT = cltt;
	}

	@Column(name = "_Option", length = 50)
	public String getOption() {
		return option;
	}

	public void setOption(String option) {
		this.option = option;
	}

	@Column(name = "Comment", length = 100)
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Column(name = "UserName", length = 50)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "NetworkView", length = 50)
	public String getNetworkView() {
		return networkView;
	}

	public void setNetworkView(String networkView) {
		this.networkView = networkView;
	}

	@Column(name = "Protocol", length = 50)
	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}

	@Column(name = "DUID", length = 50)
	public String getDUID() {
		return DUID;
	}

	public void setDUID(String duid) {
		DUID = duid;
	}

	@Column(name = "IAID", length = 50)
	public String getIAID() {
		return IAID;
	}

	public void setIAID(String iaid) {
		IAID = iaid;
	}

	@Column(name = "PrefixBits", length = 50)
	public String getPrefixBits() {
		return prefixBits;
	}

	public void setPrefixBits(String prefixBits) {
		this.prefixBits = prefixBits;
	}

	@Column(name = "PreferredLifetime", length = 50)
	public String getPreferredLifetime() {
		return preferredLifetime;
	}

	public void setPreferredLifetime(String preferredLifetime) {
		this.preferredLifetime = preferredLifetime;
	}

}
